package com.woniu.auth.mapper;

import com.woniu.auth.dto.UserDTO;
import com.woniu.auth.entity.SysUser;
import com.woniu.auth.vo.UserVO;

import java.util.List;

/**
* @author wangheng
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2022-12-05 18:42:51
* @Entity com.woniu.auth.entity.SysUser
*/
public interface SysUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    /**
     * 根据账号密码查用户
     * @param tel,password
     * @return SysUser
     */
    SysUser selectByTelAndPwd(String tel,String password);
    SysUser selectByTel(SysUser sysUser);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    /**
     * @Description 查询所有管理层用户
     * @Para a
     * @Retun a
     * @Author WangMr
     * @Date Create by 2022/12/8 15:53
     */
    List<UserVO> selectAllUser(UserDTO userDTO);

}
